﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DentScan2.WebApp
{
    public partial class Site : System.Web.UI.MasterPage
    {
        public Menu Menu
        {
            get
            {
                return NavigationMenu;
            }
        }



        protected void Page_Load(object sender, EventArgs e)
        {
            if ((this.Page as Classes.BaseForm).AreaId == null)
                hFilterMask.Value = @"[\s\S]";
            else
                switch ((this.Page as Classes.BaseForm).AreaId.Value.ToString().ToUpper())
                {
                    case Classes.Constants.FranceAreaId: hFilterMask.Value = "[\\p{P} a-zA-Z0123456789@!#$%&*\\(\\)-_+='\"|;:.,<>/?]"; break;
                    case Classes.Constants.BulgariaAreaId: hFilterMask.Value = "[\\p{P} а-яА-Яa-zA-Z0123456789@!#$%&*\\(\\)-_+='\"|;:.,<>/?]"; break;
                }

        }
    }
}